#ifndef NETCOMMS_H
#define NETCOMMS_H

#include <QString>
#include <QObject>


//Abstract class for server connection interfacing
class netComms : public QObject
{
    Q_OBJECT

public:
    virtual bool login(QString server, QString username, QString password. int port = 0) = 0;
    virtual QString getNextMsg() = 0;

public slots:
    virtual int send(QString msg) = 0;

signals:
    virtual void msgReceived() = 0;

};

#endif // NETCOMMS_H
